import request from '@/utils/request'

// 查询市政公厕管养列表
export function listToilet(query) {
  return request({
    url: '/standingbook/toilet/list',
    method: 'get',
    params: query
  })
}

// 查询市政公厕管养详细
export function getToilet(id) {
  return request({
    url: '/standingbook/toilet/' + id,
    method: 'get'
  })
}

// 新增市政公厕管养
export function addToilet(data) {
  return request({
    url: '/standingbook/toilet',
    method: 'post',
    data: data
  })
}

// 修改市政公厕管养
export function updateToilet(data) {
  return request({
    url: '/standingbook/toilet',
    method: 'put',
    data: data
  })
}

// 删除市政公厕管养
export function delToilet(id) {
  return request({
    url: '/standingbook/toilet/' + id,
    method: 'delete'
  })
}
